<template>
  <view class="messagedetail" style="height: 100%;
	display: flex;
	flex-direction: column;
	background-color: #009EF0;
	background: url('../../../static/image/background1.png') no-repeat center;
	background-size: cover;">
    <view class="title">
      <text>消息详情</text>
    </view>
    <view class="main">
      <view class="region_time">
        <text class="category" style="color:#F0F0F0">{{messagedetail.userName}}</text>
        <text class="time">{{ messagedetail.sendDate }}</text>
      </view>
      <text class="warninglevel">部门：{{messagedetail.departmentName}}</text>
      <text class="warningreason">{{messagedetail.title}}</text>
      <view class="warningregion">{{messagedetail.content}}</view>
    </view>
  </view>
</template>

<script>
import { ajax } from "../../../api/apis";
export default {
  data() {
    return {
      messagedetail: {}
    };
  },
  methods: {
    onLoad(option) {
      this.messagedetail = option;
    }
  }
};
</script>

<style scoped>
uni-page-body {
  height: 100%;
}
.messagedetail {
  height: 100%;
  /* background-color: #f9f9f9; */
}
.title {
  font-size: 16px;
  padding: 15px;
  color: #fff;
  text-align: center;
  background: url("../../../static/image/navbg.png") no-repeat center;
}

.main {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  border: 1px solid #ccc;
  /* margin: 17px 0; */
  padding: 17px 24px;
  /* background-color: #fff; */
  margin: 14px 24px 0;
  border-radius: 5px;
}
.region_time {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #fff;
  /* font-size: 12px; */
}
.warninglevel,
.warningreason {
  color: #fff;
  display: flex;
  padding: 12px 0;
}
.warningreason {
  color: #fff;
  border-bottom: 1px solid #eee;
}
.warningregion {
  color: #fff;
  margin: 10px 0;
  min-height: 100px;
}
</style>